package com.yc.myspringboot.ctr;

import org.springframework.cache.annotation.CacheEvict;
import org.springframework.stereotype.Service;

import com.yc.myspringboot.config.Convert;
import com.yc.myspringboot.pojo.Person;

@Service
public class TestController {

	@CacheEvict(cacheNames = Convert.CACHENAME_1, key="#password + '_' + #person.name + '_' + #person.age")
	public String m7(String password, Person person) {
		System.out.println("-TestCacheService----m7-------");
		return System.currentTimeMillis() + "";
	}
}
